package com.jic.member.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.member.entity.RuleObtain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 积分获取规则详情表
 * @author : 
 * @email : 
 * @since : 2020-01-15 08:28:14
 * @version : v1.0.0
 */
@Mapper
public interface  RuleObtainMapper {

    long insert(RuleObtain ruleObtain);

    long delete(Long id);

    long deleteByRuleInfoId(Long ruleInfoId);

    long update(RuleObtain ruleObtain);

    long updateByRuleInfoId(@Param("ruleObtain") RuleObtain ruleObtain);

    RuleObtain queryByPrimaryKey(Long id);

    List<RuleObtain> query(RuleObtain ruleObtain);

    List<RuleObtain> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("ruleObtain") RuleObtain ruleObtain);

    long queryPageCount(RuleObtain ruleObtain);
}